<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="MEMCMP.html">MEMCMP(3)</A></B>	       FreeBSD Library Functions Manual 	     <B><A HREF="MEMCMP.html">MEMCMP(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>memcmp</B> - compare byte string


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;string.h&gt;</B>

     <I>int</I>
     <B>memcmp</B>(<I>const</I> <I>void</I> <I>*b1</I>, <I>const</I> <I>void</I> <I>*b2</I>, <I>size</I><B>_</B><I>t</I> <I>len</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>memcmp</B>() function compares byte string <I>b1</I> against byte string <I>b2</I>.
     Both strings are assumed to be <I>len</I> bytes long.


</PRE>
<H2>RETURN VALUES</H2><PRE>
     The <B>memcmp</B>() function returns zero if the two strings are identical, oth-
     erwise returns the difference between the first two differing bytes
     (treated as unsigned char values, so that `\200' is greater than `\0',
     for example).  Zero-length strings are always identical.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="bcmp.html">bcmp(3)</A></B>,  <B><A HREF="strcasecmp.html">strcasecmp(3)</A></B>,  <B><A HREF="strcmp.html">strcmp(3)</A></B>,  <B><A HREF="strcoll.html">strcoll(3)</A></B>,	<B><A HREF="strxfrm.html">strxfrm(3)</A></B>


</PRE>
<H2>STANDARDS</H2><PRE>
     The <B>memcmp</B>() function conforms to ISO 9899: 1990 (``ISO C'').

BSD				 June 4, 1993				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
